<h1>New user</h1>

<% form_for(@user) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :username %><br />
    <%= f.text_field :username %>
  </p>
  <p>
    <%= f.label :password %><br />
    <%= f.password_field :password %>
  </p>
  <p>
    <%= f.label :email %><br />
    <%= f.text_field :email %>
  </p>
    
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<!-- link_to 'Back',  -->
<br> <br>
<%= link_to "Back to login",:controller => "home", :action => "index" %> 


